package be.myandroid.games;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.OvalShape;
import android.view.View;

public class GameView extends View{
    private ShapeDrawable mDrawable;

    public GameView(Context context) {
	    super(context);
	
	    int x = 10;
	    int y = 10;
	    int diameter = 50;
	    int width = diameter;
	    int height = diameter;
	
	    mDrawable = new ShapeDrawable(new OvalShape());
	    mDrawable.getPaint().setColor(0xff74AC23);
	    mDrawable.setBounds(x, y, x + width, y + height);
    }

    protected void onDraw(Canvas canvas) {
    	mDrawable.draw(canvas);
    }

}
